package com.ruoyi.system.domain.vo.reportstatistics;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Accessors(chain = true)
@ToString
public class DeviceOnline {
    //所属公司
    @Excel(name = "所属公司", width = 30)
    private String companyName;
    //设备编号
    @Excel(name = "设备编号", width = 20)
    private String dvo;
    //车牌号
    @Excel(name = "设备名称", width = 20)
    private String numberPlate;
    //上线日期
    @Excel(name = "上线日期", dateFormat = "yyyy-MM-dd", width = 20)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date day;
    //最早上线日期
    @Excel(name = "开始时间", dateFormat = "yyyy-MM-dd HH:mm:ss", width = 20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startTime;
    //最晚上线日期
    @Excel(name = "结束时间", dateFormat = "yyyy-MM-dd HH:mm:ss", width = 20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;
    //上线时长
    @Excel(name = "上线时长", width = 20)
    private String onlineMinutes;
    //公司简称
    private String companyShortName;
}
